import request from '../util/api'


/**
 * @param {{ id: any; userId: any; }} pram
 */
export function formConfigInfo(pram) {
  const data = {
    formId: pram.id,
    userId: pram.userId
  }
  return request({
    url: '/inbox/form/config/info',
    method: 'GET',
    params: data
  })
}

/**
 * @param {any} pram
 */
export function formConfigUpsert(pram) {
  return request({
    url: '/inbox/form/config/upsert',
    method: 'POST',
    data: pram
  })
}
